package com.pingan.project.autosendsms;

import android.content.Context;
import android.widget.TextView;

import com.lsh.lshrecyclerviewadapter.BaseAdapter;
import com.lsh.lshrecyclerviewadapter.BaseViewHolder;

import java.util.List;

/**
 * Created by hua on 2016/11/23.
 */

public class SMSAdapter extends BaseAdapter<SmSBean> {
    public SMSAdapter(Context mContext, List<SmSBean> list) {
        super(mContext, list, R.layout.item_text);
    }

    @Override
    public void onBindData(BaseViewHolder holder, List<SmSBean> data, int position) {
        TextView mItemSmsText = holder.retrieveView(R.id.item_sms_text);
        SmSBean bean = data.get(position);
        mItemSmsText.setText(bean.toString());
    }
}
